<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>FamilyTree</title>
</head>
<body>
<center>
<H3>Please Login to System</H3>
<%
// Print prior error login message if present
if (session.getAttribute("loginMessage") != null)
	out.println("<P>"+ session.getAttribute("loginMessage").
						toString()+"</P>");
%>
<br>
<form name="MyForm" method=post action="validateLogin.jsp">
	<table width="40%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td><div align="right">Username:</div></td>
			<td><input type="text" name="username" 
						size=8 maxlength=8></td>
		</tr>
		<tr>
			<td><div align="right">Password:</div></td>
			<td><input type="password" name="password" 
						size=8 maxlength=8"></td>
		</tr>
	</table>
	<input class="submit" type="submit" name="Sub" value="Log In">
</form>
<br>
<br>
<br>
<br>
<br>
<H3>Register Here</H3>
<form name="MyForm" method=post action="Register.jsp">
	<table width="40%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td><div align="right">Username:</div></td>
			<td><input type="text" name="username" 
						size=8 maxlength=8></td>
		</tr>
		<tr>
			<td><div align="right">Password:</div></td>
			<td><input type="password" name="password" 
						size=8 maxlength=8"></td>
		</tr>
	</table>
	<input class="submit" type="submit" name="Sub" value="Register">
</form>
</center>
</body>
</html>